<template>
	<view>
		<view class="viewCon">
			<view class="inputView">
				<view class="text_label">
					<text>联合国编号</text>
				</view>
				<u-input class="ipt" v-model="mapData.unCode" placeholder="请输入联合国编号"></u-input>
			</view>


			<view class="inputView">
				<view class="text_label">
					<text>中文名称</text>
				</view>
				<u-input class="ipt" v-model="mapData.chnNameAndDescribe" placeholder="请输入中文名称"></u-input>
			</view>
			<view class="inputView">
				<view class="text_label">
					<text>正式运输名称</text>
				</view>
				<u-input class="ipt" v-model="mapData.transportName" placeholder="请输入正式运输名称"></u-input>
			</view>


			<view class="btn" @click="queryClick">
				<text>查询</text>
			</view>
			<view class="btn" style="background-color:#5BB5F8 ;" @click="resetClick">
				<text>重置</text>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		knowDgoodsQuery
	} from '@/common/api/req.js'
	export default {
		data() {
			return {
				mapData: {
					unCode: '',
					chnNameAndDescribe: "",
				},
				current: 1,
				size: 10




			};
		},
		methods: {
			queryClick() {
				this.$goBack('../knowledge/knowledge_danger?data=' + JSON.stringify(this.mapData));
			},
			resetClick() {
				this.mapData = {}
				console.log(this.mapData, '?????')
			}


		}
	}
</script>

<style lang="scss">
	.viewCon {
		padding: 30rpx;



		.inputView {
			display: flex;
			align-items: center;
			margin-top: 20rpx;

			.text_label {
				width: 180rpx;
				text-align: center;
				display: flex;
				align-items: center;

				text {
					font-size: 14px;
				}
			}

			.iptview {
				flex: 1;

				.ipt {
					// margin-left: 20rpx;
					background-color: #F5F7FA;
				}
			}

			.ipt {
				background-color: #F5F7FA;
				// margin-left: 20rpx;
			}
		}

		.btn {
			width: 400rpx;
			height: 80rpx;
			background-color: #148AE4;
			margin: 0 auto;
			margin-top: 20px;
			display: flex;
			justify-content: center;
			align-items: center;
			border-radius: 20rpx;

			text {
				font-size: 32rpx;
				color: #fff;
			}

		}
	}
</style>
